import { computed, ref } from "vue";
let zIndex = ref(0)
const useZindex = (index=200)=>{
    let addIndex = ref(index)
    let curntZIndex = computed(()=>zIndex.value+addIndex.value)
    const changeZindex = ()=>{
        zIndex.value++
        return curntZIndex.value
    }
    return {
        curntZIndex,
        addIndex,
        changeZindex
    }
}

export default useZindex;// 创建一个名为useZindex的函数